package controller.decoders;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import controller.dispatchers.AbstractDispatcher;
import controller.factories.CommandFactory;
import controller.listeners.AbstractActionListener;

import model.GameCommand;

public abstract class AbstractActionEventDecoder extends EventDecoder
{
	protected AbstractActionListener listener;
	protected ActionEvent actionEvent;
	protected String actionString;

	protected void retrieveCommand()
	{
		actionEvent = listener.getActionEvent();
	}

	// implement the logic for an ActionEvent
	public abstract void parseCommand();
}
